package com.kykj.kykj.dao;

import com.kykj.kykj.entity.ArticlesLikeEntity;
import com.kykj.kykj.vo.ArticlesLikeVo;
import com.kykj.kykj.vo.ArticlesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticlesLikeDao {
    List<ArticlesLikeEntity> getArticlesLikeList();//获取所有喜欢列表
    int addArticlesLike(@Param("articlesLikeVo") ArticlesLikeVo articlesLikeVo);
    int delArticlesLike(@Param("id") int id);//删除文章
    int upArticlesLike(@Param("articlesLikeVo") ArticlesLikeVo articlesLikeVo);//修改文章
    int getLikeCount();
    List<ArticlesLikeEntity> getArticlesLikeListByUserId(@Param("userId") int userId);
}
